package com.zhangsun.yueBoot.admin.user.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 用户注册
 */
@ApiModel(description = "用户注册信息")
public class RegisterUser {

    /**
     * 用户代码（工号和登录名）
     */
    @ApiModelProperty(name = "userNo", value = "登录名", required = true, dataType = "String")
    @NotBlank(message = "登录名不能为空")
    private String userNo;

    /**
     * 用户姓名
     */
    @ApiModelProperty(name = "userName", value = "用户姓名", required = true, dataType = "String")
    @NotBlank(message = "用户姓名不能为空")
    private String userName;

    /**
     * 密码
     */
    @ApiModelProperty(name = "password", value = "密码", required = true, dataType = "String")
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 头像
     */
    @ApiModelProperty(name = "icon", value = "头像", dataType = "String")
    private String icon;

    /**
     * 省份
     */
    @ApiModelProperty(name = "province", value = "省份", dataType = "String")
    private String province;

    /**
     * 城市
     */
    @ApiModelProperty(name = "city", value = "城市", dataType = "String")
    private String city;

    /**
     * 区
     */
    @ApiModelProperty(name = "district", value = "区", dataType = "String")
    private String district;

    /**
     * 地址
     */
    @ApiModelProperty(name = "address", value = "地址", dataType = "String")
    private String address;

    /**
     * 性别：0：男；1：女
     */
    @ApiModelProperty(name = "gender", value = "性别", dataType = "Integer")
    private Integer gender;

    /**
     * 生日
     */
    @ApiModelProperty(name = "birthday", value = "生日", dataType = "String")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    /**
     * 电话
     */
    @ApiModelProperty(name = "telephone", value = "电话", dataType = "String")
    private String telephone;

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }
}
